n = input()

# print(int(int(n,16)))

print(hex(int(n))[2:].upper())
